<%-- 
    Document   : listapoltronas
    Created on : 27/04/2012, 11:10:15
    Author     : guardezi
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>

<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>Poltronas</title>
    </head>
    <body>
        <h1>Poltronas Para o voo ${pref}</h1><hr /><br/>
        
        <c:forEach items="${poltronasList}" var="p">
            Numero:  ${p.polNumero}<br/>
            Status:  ${p.polStatus}<br />
            cliente: ${p.tbClienteCliCpf.cliCpf}<br/>
            <form action="<c:url value="/comprarPoltrona" />" method="get">
            CPF: <input name="cpf" /><br />
                 <input type="hidden" name="poltrona" value="${p.polCodigo}"/>
                 <input type="hidden" name="voo" value="${p.tbVooVooCodigo.vooCodigo}"/>
                 
                 <input type="submit" value="Comprar" />
            </form>
        -------------------------------------</br>
        </c:forEach>
        <hr/>
        <a  href="<c:url value="/index"/>">Pagina Inicial</a><br/>
            
    </body>
</html>